<script type="text/javascript">
$(function(){
	setColumnSelect("receive_acc_id",":",2);	
});
</script>
<div>
	
	<form type="post" method="post" action="index.php?r=keuangan/tu/studentPayment/processBatch" enctype="multipart/form-data">
		<div>
			<label class="form" style="width:100px;text-align:right">Receive account :</label>
			<select name="receive_acc_id" id="receive_acc_id">
				<?php
					foreach($arrReceiveAcc as $receiveAcc){
						$selected = $receiveAcc->id == $receive_acc_id ? "selected" :"";
						echo "<option value='$receiveAcc->id' $selected >".$receiveAcc->acc_code ." : ". $receiveAcc->name."</option>";
					} 
				?> 
			</select>
		</div>
		<div>
			<label class="form" style="width:100px;text-align:right" >Notes :</label>
			<textarea name="notes" id="notes" style="width:300px;height:50px;vertical-align:top"> </textarea>
		</div>
		
		<div>
			<label class="form" style="width:100px;text-align:right"> Payment File :</label>
			<input type="file" id="fileBatch" name="fileBatch" >
		</div>
		
		<div>
			<input type="submit" value="Process" />
		</div>
	</form>
	<div style="border-width: 2px;border-style:ridge;overflow-y:scroll;width:100%;height:200px">
			
		<?php
			if (isset($allDataIsValid) ){
				if (!$allDataIsValid){
					foreach($errorLog as $error){
						echo "<div>";
							print_r($error);
						echo "</div>";
					}
				}else{
					echo Yii::t("label","Data Pembayaran telah di proses !");
				}
			} 
		?>
	</div>
	
</div>